import { ADD_COUNTER } from "./mutations-type"
import { ADD_TO_CART } from "./mutations-type"
export default{
  [ADD_COUNTER](state,payload){
    payload.count++
  },
  [ADD_TO_CART](state,payload){
    payload.checked = true;
    state.products.push(payload)
  },
  checkedBox(state,payload){
    payload.checked = !payload.checked
  }
}